package drinkkiosk.cards;

import javax.swing.JPanel;

/**WelcomeCard is the first Card shown when the DrinkKiosk starts up. It is also
 * shown after a successful Drink order, or when the Patron cancels any other
 * view. Two buttons allow the Patron to either order a Special or Custom Drink.
 * A manager unlock button takes Staff to UnlockCard and the ManagerCard to add
 * Specials or shut-down the system.
 * @author Charles Ritchea
 */
public class WelcomeCard extends JPanel {

	/** Creates new form Card */
	public WelcomeCard() {
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        specialsButton1 = new drinkkiosk.buttons.SpecialsButton();
        customDrinkButton1 = new drinkkiosk.buttons.CustomDrinkButton();
        managerButton1 = new drinkkiosk.buttons.UnlockButton();
        jLabel1 = new javax.swing.JLabel();

        setPreferredSize(new java.awt.Dimension(800, 600));

        specialsButton1.setBounds(30, 281, 360, 100);
        jLayeredPane1.add(specialsButton1, javax.swing.JLayeredPane.DEFAULT_LAYER);
        customDrinkButton1.setBounds(30, 430, 360, 90);
        jLayeredPane1.add(customDrinkButton1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        managerButton1.setText("");
        managerButton1.setContentAreaFilled(false);
        managerButton1.setBounds(713, 460, 70, 81);
        jLayeredPane1.add(managerButton1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/drinkkiosk/Welcome.png"))); // NOI18N
        jLabel1.setBounds(0, 0, 800, 560);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 800, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 600, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private drinkkiosk.buttons.CustomDrinkButton customDrinkButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLayeredPane jLayeredPane1;
    private drinkkiosk.buttons.UnlockButton managerButton1;
    private drinkkiosk.buttons.SpecialsButton specialsButton1;
    // End of variables declaration//GEN-END:variables
}
